package cn.cvs.service;

import cn.cvs.dao.TSupplierDao;
import cn.cvs.pojo.TSupplier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService{
    @Resource
    TSupplierDao supplierDao;
    @Override
    public List<TSupplier> getSupplierList(TSupplier tSupplier) {
        return supplierDao.getSupplierList(tSupplier);
    }

    @Override
    public List<TSupplier> getSupplierByPOJO(TSupplier tSupplier) {
        return supplierDao.getSupplierByPOJO(tSupplier);
    }

    @Override
    public boolean addSupplier(TSupplier supplier) {
        System.out.println(supplier);
        return supplierDao.addSupplier(supplier);
    }
}
